package team.knowers.qzhserver.course.datum.file.entity.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import team.knowers.qzhserver.common.entity.BaseDO;

import java.io.Serial;
import java.util.Date;

/**
 * 具体资料记录course_datum_file表对应实体类
 * @author xtg
 * @date 2024/1/22 10:10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(FileDOField.TABLE_NAME)
public class FileDO extends BaseDO {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 资料记录id
     */
    @TableId(value = FileDOField.ID, type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 资料所属文件夹id
     */
    @TableField(FileDOField.COURSE_DATUM_ID)
    private String courseDatumId;
    /**
     * 资料名称
     */
    @TableField(FileDOField.NAME)
    private String name;
    /**
     * 资料上传者id
     */
    @TableField(FileDOField.USER_ID)
    private String userId;
    /**
     * 资料上传时间
     */
    @TableField(FileDOField.GMT_CREATE)
    private Date gmtCreate;
    /**
     * 资料url
     */
    @TableField(FileDOField.URL)
    private String url;
}
